/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package POJO;

/**
 *
 * @author kimloan
 */
public class NguoiDungPOJO {

    //<editor-fold defaultstate="collapsed" desc="1. Thuộc tính">
    private int maNguoiDung;
    private String tenDangNhap;
    private String matKhau;
    private int quyen;
    private int trangThai;
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="2. Phương thức getter/setter">
    public int getMaNguoiDung() {
        return maNguoiDung;
    }

    public void setMaNguoiDung(int maNguoiDung) {
        this.maNguoiDung = maNguoiDung;
    }

    public String getMatKhau() {
        return matKhau;
    }

    public void setMatKhau(String matKhau) {
        this.matKhau = matKhau;
    }

    public String getTenDangNhap() {
        return tenDangNhap;
    }

    public void setTenDangNhap(String tenDangNhap) {
        this.tenDangNhap = tenDangNhap;
    }

    public int getQuyen() {
        return quyen;
    }

    public void setQuyen(int quyen) {
        this.quyen = quyen;
    }

    public int getTrangThai() {
        return trangThai;
    }

    public void setTrangThai(int trangThai) {
        this.trangThai = trangThai;
    }

    //</editor-fold>
    
    //<editor-fold defaultstate="collapsed" desc="3. Phương thức khởi tạo mặc định">
    public NguoiDungPOJO() {
        this.maNguoiDung = -1;
        this.tenDangNhap = "";
        this.matKhau = "";
        this.trangThai = 0;
    }
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="4. Phương thức khởi tạo đầy đủ tham số">
    public NguoiDungPOJO(int id, String tendangnhap, String matkhau, int trangthai) {
        this.maNguoiDung = id;
        this.tenDangNhap = tendangnhap;
        this.matKhau = matkhau;
        this.trangThai = trangthai;
    }
//</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="5. Phương thức khởi tạo sao chép">
    public NguoiDungPOJO(NguoiDungPOJO nd) {
        this.maNguoiDung = nd.maNguoiDung;
        this.tenDangNhap = nd.tenDangNhap;
        this.matKhau = nd.matKhau;
        this.trangThai = nd.trangThai;
    }
//</editor-fold>
}
